package org.example.Entity;

import java.util.List;

public class Student {
    private int id;
    //学生名字
    private String name;
    //学号
    private String studentId;
    //班级
    private String classs;
    //将成绩实体类以集合（成绩表被注入了课程表）的形式注入学生表
    private List<Score> scores;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public List<Score> getScores() {
        return scores;
    }

    public void setScores(List<Score> scores) {
        this.scores = scores;
    }

    public String getClasss() {
        return classs;
    }

    public void setClasss(String classs) {
        this.classs = classs;
    }

    public String getStudentId() {
        return this.studentId;
    }

    public void setStudentId(String studentId) {
        this.studentId = studentId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "Student{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", studentId='" + studentId + '\'' +
                ", classs='" + classs + '\'' +
                ", scores=" + scores +
                '}';
    }
}
